-- GENERATED SPELL FOR [Gravelsnout Digger] --


function spell0_4113(pUnit, Event) --@Skull Crack,n/a--
pUnit:FullCastSpellOnTarget(3551,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4113', 2261, 1)
end

function Sorts_4113(pUnit, Event)
local choix_sorts_4113 = math.random(0, 0)
if choix_sorts_4113 == 0 then
pUnit:RegisterEvent('spell0_4113', 1, 1)
end
end

function mob4113_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4113', math.random(1500, 3000), 1)
end

function mob4113_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4113_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4113_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4113, 1, 'mob4113_Action')
RegisterUnitEvent(4113, 2, 'mob4113_Leave')
RegisterUnitEvent(4113, 3, 'mob4113_Kill')
RegisterUnitEvent(4113, 4, 'mob4113_Die')
